function showToastAndDo(title, icon, duration, callback) {  
    uni.showToast({  
        title: title,  
        icon: icon,  
        duration: duration  
    });  
  
    setTimeout(() => {  
        if (typeof callback === 'function') {  
            callback();  
        }  
    }, duration);  
}  

export {
  showToastAndDo
}
 